package com.bdqn.service;

import com.bdqn.mapper.DataDictionaryMapper;
import com.bdqn.pojo.DataDictionary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 数据库字典业务实现
 *
 * @author LILIBO
 * @since 2021-06-15
 */
@Service
public class DataDictionaryServiceImpl implements DataDictionaryService {

    @Resource
    private DataDictionaryMapper dataDictionaryMapper; // 引入DAO层

    /**
     * 根据类型编码获得字典数据
     *
     * @param typeCode
     * @return
     */
    @Override
    public List<DataDictionary> getList(String typeCode) {
        return dataDictionaryMapper.getList(typeCode);
    }
}
